package com.hp.service.impl;

import com.hp.entity.Register;
import com.hp.mapper.RegisterMapper;
import com.hp.service.RegisterService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class RegisterServiceImpl implements RegisterService {
    @Resource
    private RegisterMapper registerMapper;
    @Override
    public List<Register> findAll(Register register) {
        return registerMapper.findAll(register);
    }

    @Override
    public Register findById(Register register) {
        return registerMapper.findById(register);
    }

    @Override
    public int delete(String[] id) {
        return registerMapper.delete(id);
    }

    @Override
    public int add(Register register) {
        return registerMapper.add(register);
    }

    @Override
    public int update(Register register) {
        return registerMapper.update(register);
    }
}
